package net.println.kotlin.chapter3

fun main(args: Array<String>) {

    val list = arrayListOf(1,3,5,7,9)
    val array = intArrayOf(2,4,6,8)
    hello(666,ints = *array,string = "hello")
}

fun hello(aInt:Int = 3,vararg ints:Int,string: String) {
    println(aInt)
    ints.forEach(::println)
    println(string)
}